home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / CommentPane$DeclBridge.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  2.7 KB  |  81 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.xml.BaseDeclaration;
  4. import java.util.Vector;
  5.  
  6. class CommentPane$DeclBridge implements CommentPane.Displayable {
  7.    // $FF: synthetic field
  8.    final CommentPane this$0;
  9.    BaseDeclaration decl;
  10.  
  11.    CommentPane$DeclBridge(CommentPane var1) {
  12.       this.this$0 = var1;
  13.    }
  14.  
  15.    public BaseDeclaration getDecl() {
  16.       return this.decl;
  17.    }
  18.  
  19.    public void setDecl(BaseDeclaration var1) {
  20.       if (var1 != this.decl) {
  21.          this.decl = var1;
  22.       }
  23.    }
  24.  
  25.    public void touch(BaseDeclaration var1) {
  26.       this.this$0.getSchemaDoc().touch(var1);
  27.    }
  28.  
  29.    public boolean hasChanges() {
  30.       return true;
  31.    }
  32.  
  33.    public boolean hasPreview() {
  34.       return true;
  35.    }
  36.  
  37.    public boolean isEditable() {
  38.       return this.decl != null && this.this$0.getSchemaDoc().isEditable(this.decl);
  39.    }
  40.  
  41.    public String getAll() {
  42.       return this.decl == null ? "" : this.decl.getCommentsAsString((String)null, CommentPane.TWIXT);
  43.    }
  44.  
  45.    public String getUnkind() {
  46.       return this.decl == null ? "" : this.decl.getCommentsAsString("", CommentPane.TWIXT);
  47.    }
  48.  
  49.    public String getUsage() {
  50.       return this.decl == null ? "" : this.decl.getCommentsAsString("USAGE", CommentPane.TWIXT);
  51.    }
  52.  
  53.    public String getChanges() {
  54.       if (this.decl == null) {
  55.          return null;
  56.       } else {
  57.          String var1 = this.this$0.getSchemaDoc().getPendingChangeComment(this.decl);
  58.          String var2 = this.decl.getCommentsAsString("CHANGES", CommentPane.TWIXT);
  59.          if (var1 == null) {
  60.             return var2;
  61.          } else {
  62.             return var2.length() > 0 ? String.valueOf(String.valueOf(var2).concat(String.valueOf(CommentPane.TWIXT))).concat(String.valueOf(var1)) : var1;
  63.          }
  64.       }
  65.    }
  66.  
  67.    public String getName() {
  68.       return this.decl == null ? "" : XAUI.getObjectName(this.decl.getClassName(), this.decl.getName());
  69.    }
  70.  
  71.    public String getPreview() {
  72.       return this.decl == null ? "" : this.this$0.previewer.getSourcePreview(this.decl);
  73.    }
  74.  
  75.    public void setComments(Vector var1, String var2) {
  76.       this.this$0.semaphoreDontUpdate = true;
  77.       this.decl.updateComments(var1, var2);
  78.       this.this$0.semaphoreDontUpdate = false;
  79.    }
  80. }
  81.